//
// Created by v on 24-11-26.
//


#ifdef _WITH_LGVL
#include "CMUIShowWithLVGL.h"
#endif
#include <stdio.h>
#include <unistd.h>
#include "cm_common.h"
#include "rt_print.h"

int main(int argc, char **args)
{
    LOGD("Startup [%s: %s]", __DATE__, __TIME__);

    rt_print_init(RT_PRINT_ALL, RT_PRINT_STYLE_ALL, RT_COLOR_TRUE, "ui");

#ifdef _WITH_LGVL
    CMUIShowInterface *ui = new CMUIShowWithLVGL();
#endif

    ui->init();
    ui->start();
    ui->showMain();
    ui->uiShowImage("/home/cat/j/res/main.jpg");

    ui->runLoop();
    ui->stop();
    ui->deinit();

    return 0;
}
